
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gerenziliao"></use>
                    </svg>
                    <div class="name">个人资料</div>
                    <div class="fontclass">#icon-gerenziliao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-rili"></use>
                    </svg>
                    <div class="name">日历</div>
                    <div class="fontclass">#icon-rili</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-youjian"></use>
                    </svg>
                    <div class="name">邮件</div>
                    <div class="fontclass">#icon-youjian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-infenicon12"></use>
                    </svg>
                    <div class="name">公告</div>
                    <div class="fontclass">#icon-infenicon12</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dots"></use>
                    </svg>
                    <div class="name">点点点</div>
                    <div class="fontclass">#icon-dots</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiangxia"></use>
                    </svg>
                    <div class="name">向下</div>
                    <div class="fontclass">#icon-xiangxia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-down"></use>
                    </svg>
                    <div class="name">赞</div>
                    <div class="fontclass">#icon-down</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zan-copy"></use>
                    </svg>
                    <div class="name">赞</div>
                    <div class="fontclass">#icon-zan-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appxiugaiicon64-copy"></use>
                    </svg>
                    <div class="name">向左箭头</div>
                    <div class="fontclass">#icon-appxiugaiicon64-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-money"></use>
                    </svg>
                    <div class="name">收益</div>
                    <div class="fontclass">#icon-money</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhengyanicon"></use>
                    </svg>
                    <div class="name">tt_睁眼</div>
                    <div class="fontclass">#icon-zhengyanicon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gou"></use>
                    </svg>
                    <div class="name">钩</div>
                    <div class="fontclass">#icon-gou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiantou-copy-copy-copy"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#icon-jiantou-copy-copy-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wanfenshouyi"></use>
                    </svg>
                    <div class="name">万份收益</div>
                    <div class="fontclass">#icon-wanfenshouyi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huankuan"></use>
                    </svg>
                    <div class="name">还款</div>
                    <div class="fontclass">#icon-huankuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiantou"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#icon-jiantou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renshu"></use>
                    </svg>
                    <div class="name">人数</div>
                    <div class="fontclass">#icon-renshu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mayishangchengdaizhifudengicon02"></use>
                    </svg>
                    <div class="name">已成交</div>
                    <div class="fontclass">#icon-mayishangchengdaizhifudengicon02</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiangzuojiantou"></use>
                    </svg>
                    <div class="name">向左箭头</div>
                    <div class="fontclass">#icon-xiangzuojiantou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-eyesclose"></use>
                    </svg>
                    <div class="name">闭眼</div>
                    <div class="fontclass">#icon-eyesclose</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fanganshuliang"></use>
                    </svg>
                    <div class="name">方案数量</div>
                    <div class="fontclass">#icon-fanganshuliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yanjing"></use>
                    </svg>
                    <div class="name">眼睛</div>
                    <div class="fontclass">#icon-yanjing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-touzi"></use>
                    </svg>
                    <div class="name">投资</div>
                    <div class="fontclass">#icon-touzi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shibaitishi"></use>
                    </svg>
                    <div class="name">失败提示</div>
                    <div class="fontclass">#icon-shibaitishi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shezhi"></use>
                    </svg>
                    <div class="name">设置</div>
                    <div class="fontclass">#icon-shezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-sousuo"></use>
                    </svg>
                    <div class="name">搜索</div>
                    <div class="fontclass">#icon-sousuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-touzimingxi"></use>
                    </svg>
                    <div class="name">投资明细</div>
                    <div class="fontclass">#icon-touzimingxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuanzhong"></use>
                    </svg>
                    <div class="name">选中</div>
                    <div class="fontclass">#icon-xuanzhong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouye"></use>
                    </svg>
                    <div class="name">首页</div>
                    <div class="fontclass">#icon-shouye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yaoqinghaoyou"></use>
                    </svg>
                    <div class="name">邀请好友</div>
                    <div class="fontclass">#icon-yaoqinghaoyou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhanneixinxi"></use>
                    </svg>
                    <div class="name">站内信息</div>
                    <div class="fontclass">#icon-zhanneixinxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zixunpindao"></use>
                    </svg>
                    <div class="name">资讯频道</div>
                    <div class="fontclass">#icon-zixunpindao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zixungonggao"></use>
                    </svg>
                    <div class="name">资讯公告</div>
                    <div class="fontclass">#icon-zixungonggao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zidongtoubiao"></use>
                    </svg>
                    <div class="name">自动投标</div>
                    <div class="fontclass">#icon-zidongtoubiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuixingonggao"></use>
                    </svg>
                    <div class="name">最新公告</div>
                    <div class="fontclass">#icon-zuixingonggao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chedai"></use>
                    </svg>
                    <div class="name">车贷</div>
                    <div class="fontclass">#icon-chedai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chongzhitixianjilu"></use>
                    </svg>
                    <div class="name">充值提现记录</div>
                    <div class="fontclass">#icon-chongzhitixianjilu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fenxiang"></use>
                    </svg>
                    <div class="name">分享</div>
                    <div class="fontclass">#icon-fenxiang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chenggongtishi"></use>
                    </svg>
                    <div class="name">成功提示</div>
                    <div class="fontclass">#icon-chenggongtishi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gerenzhongxin"></use>
                    </svg>
                    <div class="name">个人中心</div>
                    <div class="fontclass">#icon-gerenzhongxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-haoyouliebiao"></use>
                    </svg>
                    <div class="name">好友列表</div>
                    <div class="fontclass">#icon-haoyouliebiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-haoyoushujuzonglan"></use>
                    </svg>
                    <div class="name">好友数据总览</div>
                    <div class="fontclass">#icon-haoyoushujuzonglan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiekuanxiangmu"></use>
                    </svg>
                    <div class="name">借款项目</div>
                    <div class="fontclass">#icon-jiekuanxiangmu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiekuanxiangqing"></use>
                    </svg>
                    <div class="name">借款详情</div>
                    <div class="fontclass">#icon-jiekuanxiangqing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-licaipindao"></use>
                    </svg>
                    <div class="name">理财频道</div>
                    <div class="fontclass">#icon-licaipindao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-liulanliang"></use>
                    </svg>
                    <div class="name">浏览量</div>
                    <div class="fontclass">#icon-liulanliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-loudai"></use>
                    </svg>
                    <div class="name">楼贷</div>
                    <div class="fontclass">#icon-loudai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pinggubaogao"></use>
                    </svg>
                    <div class="name">评估报告</div>
                    <div class="fontclass">#icon-pinggubaogao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qiehuanzhanghao"></use>
                    </svg>
                    <div class="name">切换账号</div>
                    <div class="fontclass">#icon-qiehuanzhanghao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shanchuguanbi"></use>
                    </svg>
                    <div class="name">删除关闭</div>
                    <div class="fontclass">#icon-shanchuguanbi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yitourenshu"></use>
                    </svg>
                    <div class="name">已投人数</div>
                    <div class="fontclass">#icon-yitourenshu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-baozhangfangshi"></use>
                    </svg>
                    <div class="name">保障方式</div>
                    <div class="fontclass">#icon-baozhangfangshi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-muzishijian"></use>
                    </svg>
                    <div class="name">募资时间</div>
                    <div class="fontclass">#icon-muzishijian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuidiqitou"></use>
                    </svg>
                    <div class="name">最低起投</div>
                    <div class="fontclass">#icon-zuidiqitou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pinglunicon"></use>
                    </svg>
                    <div class="name">评论icon</div>
                    <div class="fontclass">#icon-pinglunicon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wangdaixuetang"></use>
                    </svg>
                    <div class="name">网贷学堂</div>
                    <div class="fontclass">#icon-wangdaixuetang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiewenzhang_fuzhi"></use>
                    </svg>
                    <div class="name">写文章_复制</div>
                    <div class="fontclass">#icon-xiewenzhang_fuzhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiaoxiicon"></use>
                    </svg>
                    <div class="name">消息icon</div>
                    <div class="fontclass">#icon-xiaoxiicon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouyeicon_"></use>
                    </svg>
                    <div class="name">首页icon_</div>
                    <div class="fontclass">#icon-shouyeicon_</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wenzhangicon"></use>
                    </svg>
                    <div class="name">文章icon</div>
                    <div class="fontclass">#icon-wenzhangicon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shezhiicon_fuzhi"></use>
                    </svg>
                    <div class="name">设置icon_复制</div>
                    <div class="fontclass">#icon-shezhiicon_fuzhi</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
